package zhangqi.com.guessmusic.model;

/**
 * 普通的javabean类,不过加了一个转换格式的方法
 */
public class Song {
    // 歌曲名称
    private String mSongName;

    // 歌曲的文件名
    private String mSongFileName;

    // 歌曲名字长度
    private int mNameLength;

    //转换格式的方法
    public char[] getNameCharacters() {
        return mSongName.toCharArray();
    }


    //------------------------------get set方法---------------------------------------

    public String getSongName() {
        return mSongName;
    }

    public void setSongName(String songName) {
        this.mSongName = songName;

        this.mNameLength = songName.length();
    }

    public String getSongFileName() {
        return mSongFileName;
    }

    public void setSongFileName(String songFileName) {
        this.mSongFileName = songFileName;
    }

    public int getNameLength() {
        return mNameLength;
    }
}